package states;
import mediator.Mediator;


public class StateManager {
	private State currentState;
	private State buyerState;
	private State sellerState;

	public StateManager(Mediator med) {
		buyerState = new BuyerState(med);
		sellerState = new SellerState(med);
	}

	public void setSellerState() {
		//set current state as Seller state
		currentState = sellerState;
	}

	public void setBuyerState() {
		//set current state as Buyer state
		currentState = buyerState;
	}

	public void mouseClick(int x, int y) {
		//perform mouseClick on the currentState of the manager
		currentState.mouseClick(x, y);
	}

	public void mouseRightClick(int x, int y) {
		//perform mouseRightClick on the currentState of the manager
		currentState.mouseRightClick(x, y);
	}

}